From: Jonas Ã…dahl Date: Sat, 3 Sep 2022 20:50:42 +0000 (+0200) Subject: st/widget: Remove transitions when unmapped X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~230 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=210754f1e96448b9007670d3b71ec4b2f241a600;p=gnome-shell.git st/widget: Remove transitions when unmapped This avoids having animating timelines on invisible and detached actors. This also silences some warnings about the timeline being running without being attached to the stage. Part-of: --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 92d6456a1..31c400bfa 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -494,6 +494,8 @@ st_widget_unmap (ClutterActor *actor) CLUTTER_ACTOR_CLASS (st_widget_parent_class)->unmap (actor); + st_widget_remove_transition (self); + if (priv->track_hover && priv->hover) st_widget_set_hover (self, FALSE); }